'use strict';
// mysql数据库相关配置
exports.mysql = {
  // 单数据库信息配置
  client: {
    db1: {
      // host
      host: '198.65.60.66',
      // 端口号
      port: '3306',
      // 用户名
      user: 'root',
      // 密码
      password: '12324343',
      // 数据库名
      database: 'eggys-sys',
    },
    db2: {
      // host
      host: '198.65.60.103',
      // 端口号
      port: '3306',
      // 用户名
      user: 'root',
      // 密码
      password: '12324343',
      // 数据库名
      database: 'eggys-sys',
    },
    db3: {
      // host
      host: '198.65.60.105',
      // 端口号
      port: '3306',
      // 用户名
      user: 'root',
      // 密码
      password: '12324343',
      // 数据库名
      database: 'eggys-sys',
    }
  }

};

//生产 环境redis配置
exports.redis = {
  client: {
    cluster: true,
    nodes: [{
      db: 0,
      password: '123456',
      port: 6379,
      host: '198.65.60.34'
    }, {
      db: 0,
      password: '123456',
      port: 6380,
      host: '198.65.60.34'
    }, {
      db: 0,
      password: '123456',
      port: 6379,
      host: '198.65.60.39'
    }, {
      db: 0,
      password: '123456',
      port: 6380,
      host: '198.65.60.39'
    }, {
      db: 0,
      password: '123456',
      port: 6379,
      host: '198.65.60.82'
    }, {
      db: 0,
      password: '123456',
      port: 6380,
      host: '198.65.60.82'
    }]
  },
};
//egg-mongoose 配置
exports.mongoose = {
  client: {
    url: 'mongodb://198.65.60.121:20000,198.65.60.123:20000,198.65.60.129:20000/mytest',
    //url: 'mongodb://198.65.60.121:20000',
    options: {
      useUnifiedTopology: true,
      useNewUrlParser: true,
      useFindAndModify: false,
      autoIndex: false,
      poolSize: 10,
      authSource: 'admin',
      user: 'sa',
      pass: 'mongoddc2020',
      bufferMaxEntries: 0
    }
  }
};

exports.kafka = {
  brokers: ['localhost:9091', 'localhost:9092', 'localhost:9093', 'localhost:9094', 'localhost:9095'],
  groupId: 'wxgzh_group'
};

// 在这添加用户配置信息
exports.userConfig = {

};